package com.tfjybj.itoo.teach.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

/**
 * SchoolCalendarModel
 * 校历表
 *
 * @author 田成荣 
 * @version 2.0.0
 * @since 2.0.0 2018-11-08 19:34:10
 */
@ApiModel(value = "SchoolCalendarModel:校历表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class SchoolCalendarModel implements Serializable {

    //region 模板逆向生产来自SchoolCalendarEntity的属性
	/**
	 * id
	 */
	@ApiModelProperty(value = "schoolCalendar主键")
	@Column(name = "id")
	private String id;
   	/**
	 * 事件id
	 */
	@ApiModelProperty(value = "事件id",required = true)
	private String eventId;

	/**
	 * 学期id
	 */
	@ApiModelProperty(value = "学期id",required = true)
	private String termId;

	/**
	 * event_code
	 */
    @ApiModelProperty(value = "event_code")
	private String eventCode;

	/**
	 * 事件url
	 */
    @ApiModelProperty(value = "事件url")
	private String eventUrl;

	/**
	 * 开始日期
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "开始日期")
	private Date startTime;

	/**
	 * 结束日期
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "结束日期")
	private Date endTime;

	/**
	 * 参与角色id
	 */
    @ApiModelProperty(value = "参与角色id")
	private String roleId;

	/**
	 * 年份
	 */
	@ApiModelProperty(value = "年份")
	@Column(name = "school_year")
	private String schoolYear;

	//endregion

     /* *****************************以下是非模板生成的内容************************************ */
}
